package com.yanqu.road.entity.log.cross;

import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.log.ServerBaseLog;

@FieldTypeAnnotation(tableName = "t_l_ck_douluodalu_team", desc = "斗罗/封神世界队伍信息日志", autoSave = true, uploadCk = true, isCross = true)
public class LogDouLuoDaLuTeam extends ServerBaseLog {

    @FieldTypeAnnotation(desc = "活动id", isIndex = true)
    private int activityId;

    @FieldTypeAnnotation(desc = "用户id", isIndex = true)
    private long userId;

    @FieldTypeAnnotation(desc = "队伍id")
    private int teamId;

    @FieldTypeAnnotation(desc = "角色 0成员 1队长")
    private int role;

    @FieldTypeAnnotation(desc = "变动类型 0创建 1入队 2解散 3被踢 4离队")
    private int type;


    public LogDouLuoDaLuTeam(int activityId, long userId, int teamId, int role, int type) {
        this.activityId = activityId;
        this.userId = userId;
        this.teamId = teamId;
        this.role = role;
        this.type = type;
    }


    @Override
    public long getUserId() {
        return userId;
    }
}
